﻿@model PaymentHelper.PaymentResult      

@{
    ViewBag.Title = ViewBag.Resources["DefaultPaymentFlow.CompleteTitle"];
    
    if(!string.IsNullOrEmpty(PaymentHelper.PaymentFlow.PaymentFlowManager.Layout)){
        Layout = PaymentHelper.PaymentFlow.PaymentFlowManager.Layout;
    }    
}

<div class="@ViewBag.CssClass">    

    @Html.Action("PaymentSteps","DefaultTemplate", new { step = PaymentHelper.PaymentFlowTemplates.Default.Models.PaymentStep.Complete })

    <div class="payment_content" style="border-radius:3px;border:1px solid #ddd;padding:10px;font-weight:bold;">
         @if (Model.Success == true)
         {
             <p>@ViewBag.Resources["DefaultPaymentFlow.CompleteSucsess"]</p>
         }
         else
         {
             <p>@ViewBag.Resources["DefaultPaymentFlow.CompleteFaild"]</p>
             if (Model.Errors != null && Model.Errors.Count > 0)
             {
                 <p>@ViewBag.Resources["DefaultPaymentFlow.ErrorLabel"]</p>
                <ul>
                    @foreach (var error in Model.Errors){
                        <li>@error</li>
                    }
                </ul>
             }
         }
    </div>           
</div>
